<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
</head>
<body>
    <div id="app">
       <p>姓名: {{name}}</p>
       <p>年龄: {{age}}</p>
       <p>兴趣爱好: {{hobby}}</p>
       <p>专业: {{major}}</p>
    </div>  
</body>
<script>
        const counter = {
            data(){
                return{
                    name: "张三",
                    age: "22",
                    hobby: "打代码",
                    major: "软件",

                }//对上面进行赋值
            }
        }
Vue.createApp(counter).mount("#app") //  counter获取couter   #app获取app      
    </script>
</html>